#include "mainwindow.h"

#include "extern/mazegamedesigner.h"
#include "tools.h"

#include <QApplication>

#include <QHBoxLayout>
#include <QDialog>

#include <QTime>

int main(int argc, char *argv[])
{
    // Inizialize seed for random generator
    qsrand(QTime::currentTime().msec());

    // Create application and event loop
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

#ifdef MAP_CREATOR
    QDialog * diag = new QDialog();
    QHBoxLayout * lay = new QHBoxLayout();
    MazeGameDesigner * designer = new MazeGameDesigner();
    diag->setLayout(lay);
    lay->addWidget(designer);
    diag->show();

#endif
    
    return a.exec();
}
